<?php

class TopicArray 
{
        private $topics = array();
        
        public function __construct()
		{
                
        }
        
        public function add(Topic $topic)
		{
                $this->topics[] = $topic; 
        }
        
        public function get() 
        {
                return $this->topics;
        }
}

class Topic
{
        private $topicId; //Int
        private $header; //String
        private $userName; //String
        private $date; //Date
        private $content; //String
        
        public function __construct($topicId, $header, $userName, $date, $content)
		{
                $this->topicId = $topicId;
                $this->header = $header;
                $this->userName = $userName;
				$this->date = $date;
				$this->content = $content;
        }
        
        public function getId() 
        {
                return $this->topicId;
        }
        
        public function getHeader()
		{
                return $this->header;
        }
        
        public function getDate() 
        {
                return $this->date;                         
        }
		
		public function getUserName()
		{
				return $this->userName;
		}
		
		public function getContent()
		{
				return $this->content;
		}		
		
		
		
}